home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / install / package-.1 / package- / package-0.1 / usr.lib / prepare < prev   
Text File  |  1993-03-18  |  417b  |  20 lines

  1. #!/bin/sh
  2. #
  3. # $Id: prepare.sh,v 1.2 1993/02/19 13:46:30 mike Exp $
  4. #
  5. # Prepare a target structure for general use. There are some things that
  6. # packages shouldn't really set up themselves but which need doing.
  7.  
  8. target=$1
  9.  
  10. # Make any cat directories necessary.
  11. if [ -d $1/man ]; then
  12.     ls -d $1/man/man? | sed 's/man\(.\)$/cat\1/' | while read i
  13.     do
  14.         if [ ! -d $i ]; then
  15.             mkdir $i
  16.         fi
  17.         chmod a=rwx,+t $i
  18.     done
  19. fi
  20.